package com.example.demo.config;

//import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.*;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 *  日志处理切面类 统一进行日志处理
 */
@Aspect // 标注为切面类
//@Component
@Order(1)
@Slf4j
public class LogAspect {

//    @Autowired
//    private LogService logService;

    //定义切点表达式,指定通知功能被应用的范围
    @Pointcut("execution(public * com.example.demo.controller.*.*(..))")
    public void indexLog() {

    }

    public void writeLogToDB() {

    }



}
